using System;
using System.Configuration;
using System.Collections;
using System.IO;
using System.Reflection;
using System.Web;
using System.Web.Caching;
using System.Xml;
using System.Text.RegularExpressions;
using System.Web.Core;

namespace Yuanlin.Business
{
    public class Configuration
    {
        #region Private Members

        private static Configuration instance;

        #endregion

        #region Singleton

        private Configuration()
        { 
            Initialize(ConfigurationManager.GetSection("siteConfig") as XmlNode);
        }
        public static Configuration Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new Configuration();
                }
                return instance;
            }
        }

        #endregion

        #region Helpers

        private void Initialize(XmlNode configSection)
        {
            if (configSection == null)
            {
                return;
            }

            XmlAttributeCollection attributeCollection = configSection.Attributes;
        }


        #endregion
    }
}